home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr47 / lzpip103.zip / ZIPDEFS.H < prev    next >
Text File  |  1994-03-30  |  1KB  |  31 lines

  1. #ifndef WSIZE
  2. #  define WSIZE 0x8000
  3. #endif
  4. /* Maximum window size = 32K. If you are really short of memory, you may
  5.  * compile with a smaller WSIZE but this reduces the compression ratio for
  6.  * files of size > WSIZE.
  7.  * Note, the above notice valid for deflation (compression) process only.
  8.  * Inflation (decompression) process always requires at least 32K window.
  9.  * WSIZE must be a power of two in the current implementation.
  10.  */
  11.  
  12. #define STORED   0 /* compression methods */
  13. #define DEFLATED 8
  14.  
  15. #define GZIP_MAGIC   0x8b1f
  16. #define PKW_01_MAGIC 0x4b50
  17. #define PKW_23_MAGIC 0x0403
  18. #define PKW_LOCAL    (PKW_01_MAGIC+((ulg)PKW_23_MAGIC<<16))
  19. #define PKW_CENTRAL  (PKW_01_MAGIC+0x02010000L)
  20. #define PKW_END      (PKW_01_MAGIC+0x06050000L)
  21. #define PKW_EXT      (PKW_01_MAGIC+0x08070000L)
  22.  
  23. /* Types centralized here for easy modification */
  24. typedef unsigned char uch;  /* unsigned 8-bit value */
  25. typedef unsigned short ush; /* unsigned 16-bit value */
  26. typedef unsigned long ulg;  /* unsigned 32-bit value */
  27.  
  28. #define ERROR (-1)
  29. #define FALSE 0
  30. #define TRUE  1
  31.